<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

return [
    '__pattern__' => [
        'name' => '\w+',
    ],
    '[hello]'     => [
        ':id'   => ['index/hello', ['method' => 'get'], ['id' => '\d+']],
        ':name' => ['index/hello', ['method' => 'post']],
    ],

    //定义后台登录地址
    'adminLogin'          =>  'Admin/login/index',
    //前端
    'logyanma'            =>  'Index/login/sendloginyanma',//验证码短信接口
    'phonelogin'          =>  'Index/login/phonelogin',//手机登录接口
    'orderRecord'         =>  'Index/users/orderRecord',//用户订单记录
    'receiverAddress'     =>  'Index/users/receiverAddress',//用户收货地址
    'addressList'         =>  'Index/users/addressList',//地址列表接口
    'addAddressInfo'      =>  'Index/users/addAddressInfo',//地址详细信息
    'deleteAddress'       =>  'Index/users/deleteAddress',//删除该地址
    'editAddressInfo'     =>  'Index/users/editAddressInfo',//修改提交收货地址
    'browseRecord'        =>  'Index/users/browseRecord',//用户浏览记录
    'deleteBrowse'        =>  'Index/users/deleteBrowse',//删除用户浏览记录
    'userInfo'            =>  'Index/users/userInfo',//用户资料
    'uploadImg'           =>  'Index/users/uploadImg',//用户图片上传
    'editUser'            =>  'Index/users/editUser',//修改用户信息

    'bieshusheji/:key'    => 'Index/design/designLists',//别墅搜索
    'bieshusheji'         => 'Index/design/designlists',//别墅图纸
    'buyImg'              => 'Index/design/buyImg',//购买图纸

    ':drawing_id'         =>  ['Index/design/designDetail',[],['drawing_id'=>'\d+']],

    'dingzhi'             => 'Index/privateorder/index',//私人订制
    'submitOrder'         => 'Index/privateorder/addOrder',//提交表单

    'tuandui/:id'         => ['Index/team/teamlist',[],['id'=>'\d+']],//团队分类
    'tuandui'             => 'Index/team/teamlist',//团队
    'team/:id'            => ['Index/team/designerInfo',[],['id'=>'\d+']],//设计师信息

    'anli/:key'           => 'Index/construct/caselist',//施工案例搜索
    'anli'                => 'Index/construct/caselist',//施工案例列表
    'case/:id'            => ['Index/construct/caseDetail',[],['id'=>'\d+']],//施工案例详情

    'ordercase/:key'      => 'Index/ordercase/caselist',//订制案例搜索
    'ordercase'           => 'Index/ordercase/caselist',//订制案例列表
    'custom/:id'          => ['Index/ordercase/caseDetail',[],['id'=>'\d+']],//订制案例详情

    'news/:information_id'=> ['Index/news/newsDetail',[],['information_id'=>'\d+']],//建房知识详情
    'newslist/:key'       => 'Index/news/newslist',//建房知识列表类型
    'newslist'            => 'Index/news/newslist',//建房知识列表
    'news/:key'           => 'Index/news/index',//建房知识聚合类型
    'news'                => 'Index/news/index',//建房知识聚合

    'login'               => 'Index/login/index',//登陆

    'search/:key'         => 'Index/news/keywordResult',//标签页搜索
    'search'              => 'Index/news/search',//头部关键字搜索

    'about/:page_id'      => ['Index/about/index',[],['page_id'=>'\d+']],//关于我们详情页面
    'about'               => 'Index/about/index',//关于我们

    'sitemap'             => ['Index/about/webMap',[],['ext'=>'html']],

];
